import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const Username = 'username'

export function getToken() {
    return Cookies.get(TokenKey)
}

export function getUsername() {
  return Cookies.get(Username)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function setUsername(username) {
  return Cookies.set(Username, username)
}
export function removeToken() {
  Cookies.remove(Username);
    return Cookies.remove(TokenKey)
}
